package com.example.qianwen.controller.Files;

import com.example.qianwen.service.Files.impl.FilesService;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class FilesController {
    @Resource
    private FilesService filesService;
    @RequestMapping("/insertFile")
    //@Datasource()
    public Integer insertFile(String  filesage,String filesname){
        System.out.println(filesname+"?"+Integer.parseInt(filesname)+"?"+filesage);
       int i = 1/Integer.parseInt(filesname);
        return filesService.insertFile(filesage,filesname);
    }
}
